#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void QuickSort(int arr[], int low, int high)
{
	if (low >= high)
		return;
	int i = low, j = high;
	int k = arr[low];
	if (i < j)
	{
		while (i < j && arr[j] >= k)
			j--;
		if (i < j)
			arr[i++] = arr[j];
		while (i < j && arr[i] < k)
			i++;
		if (i < j)
			arr[j--] = arr[i];
	}
	arr[i] = k;
	QuickSort(arr, low, i - 1);
	QuickSort(arr, i + 1, high);
}
int main() 
{
	int n = 0;
	scanf("%d", &n);
	int arr[10001] = { 0 };
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	QuickSort(arr,0,n-1);
	for (int i = 0; i < n; i++)
		printf(" %d", arr[i]);
	printf("\n");
	return 0;
}